/*
 * dTranslateIface.h
 *
 *  Created on: 16.08.2009
 *      Author: index01d
 */

#ifndef DTRANSLATEIFACE_H_
#define DTRANSLATEIFACE_H_

#include <QApplication>
#include <QtGui>

#include "dtranslator.h"
#include "langsDialog.h"
#include "dTrayIcon.h"
#include "gTranslate.h"


/**
 * dTranslateIface
 * @desc: Main class
 */
class dTranslateIface : public QApplication
{
	Q_OBJECT

public:
	dTranslateIface(int& argc, char** argv);
	~dTranslateIface();

protected:
    dtranslator* w;  //Input widget
    langsDialog* l;  //Select Language Dialog
    dTrayIcon* tray; //Tray Icon

    QMenu* trayMenu; //Menu for the tray Icon

    gTranslate* gTr; //Translate Class

protected slots:
	//Slot for handling a tray-click
	void trayAction(QAction *action);

private:
	void showAbout();
};

#endif /* DTRANSLATEIFACE_H_ */
